package com.yangjian.main;

public class JJMain {

	public static void main(String[] args) {

		char[] ca = {'a','b','c','d'};
		
		String s1 = new String(ca);
		String s2 = "abcd";
		String s3 = "abcd";
		String s4 = new String("abcd");
		
		System.out.println(s1);
		System.out.println(s2);
		System.out.println(s3);
		System.out.println(s4);
		
		System.out.println(s1 == s2);
		System.out.println(s2 == s3);
		
		System.out.println(s1.equals(s2));
		
	}

}















